package com.vanke.vms.management.service.serviceImpl;

import java.util.List;

import com.vanke.vms.common.domain.Info;
import com.vanke.vms.common.domain.Pair;
import com.vanke.vms.management.dao.AddInfoDao;
import com.vanke.vms.management.service.AddInfoService;

public class AddInfoServiceImpl implements AddInfoService{
	
	private AddInfoDao addInfoDao;
	
	public String addInfo(Info info){
		return addInfoDao.addInfo(info);
	}
	
	public List<Pair> addList(){
		return addInfoDao.addiList();
	}
	
	public void registeInfo(Info info){
		addInfoDao.registeInfo(info);
	}

	public void updateInfo(Info info){
		addInfoDao.updateInfo(info);
	}

	public boolean isDublipcated(String houseSet, String houseBuild, String houseNum){
		return addInfoDao.isDublipcated(houseSet, houseBuild, houseNum);
	}
	
	public void addAddInfo(String id, List<Pair> pairList){
		addInfoDao.addAddInfo(id, pairList);
	}

	/**
	 * @return the addInfoDao
	 */
	public AddInfoDao getAddInfoDao() {
		return addInfoDao;
	}

	/**
	 * @param addInfoDao the addInfoDao to set
	 */
	public void setAddInfoDao(AddInfoDao addInfoDao) {
		this.addInfoDao = addInfoDao;
	}
}
